def readFile(fileName):
    file = open(fileName, 'rt')
    try:
        result = file.readline()
    finally:
        file.close()
        print('文件被关闭')
    return result


readFile('data/sales.txt')
